from django.contrib.auth.forms import AuthenticationForm
from django.utils.translation import ugettext as _
from django import forms

class StyledAuthForm(AuthenticationForm):
    username = forms.CharField(
        label=_("Username"),
        max_length=30,
        widget=forms.TextInput(attrs={
            'class': 'text',
            'title': _('Username')
        })
    )

    password = forms.CharField(
        label=_("Password"),
        max_length=60,
        widget=forms.PasswordInput(attrs={
            'class': 'text',
            'title': _('Password')
        })
    )

    class Meta:
        app_label = 'lira'
